﻿using Microsoft.Extensions.ObjectPool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ObjectPoolDemo
{
    public class ConnectionObjectPoolProvider : DefaultObjectPoolProvider
    {
        public ConnectionObjectPoolProvider()
        {
            // default 2 times processor count.
            this.MaximumRetained = 100;
        }
    }
}
